class Comment < ActiveRecord::Base
  belongs_to :article
  validates_presence_of :content 
  validates_format_of :email, :with => /\b[a-z0-9._%-]+@[a-z0-9.-]+\.[a-z]{2,4}\b/, :message => "wrong e-mail format"
end
